//
//  LegendView.m
//  TraceViewer
//
//  Created by Vladimir Sarpe on 27/06/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import "LegendView.h"


@implementation LegendView

- (id)initWithFrame:(NSRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code here.
    }
    return self;
}

- (void)drawRect:(NSRect)rect {
	//[[NSColor colorWithCalibratedWhite:0.8 alpha:1.0] set];
	//[[NSColor whiteColor] set];
	//NSRectFill(rect);
	
	/*NSBezierPath *borderPath= [[NSBezierPath alloc] init];
    [borderPath setLineWidth:1];
    [borderPath moveToPoint:NSMakePoint(0, 0)];
    [borderPath lineToPoint:NSMakePoint(0, rect.size.height)];
    [borderPath lineToPoint:NSMakePoint(rect.size.width, rect.size.height)];
    [borderPath lineToPoint:NSMakePoint(rect.size.width, 0)];
    [borderPath closePath];
	[[NSColor blackColor] set];
	[borderPath stroke]; */
	
	NSBezierPath* path = [[NSBezierPath alloc] init];
	[path setLineWidth:2];
	[path moveToPoint:NSMakePoint(156, 8)];
	[path lineToPoint:NSMakePoint(189, 8)];
	[[NSColor redColor] set];
	[path stroke];
	path = [[NSBezierPath alloc] init];
	[path setLineWidth:2];
	[path moveToPoint:NSMakePoint(100, 8)];
	[path lineToPoint:NSMakePoint(133, 8)];
	[[NSColor blueColor] set];
	[path stroke];
	path = [[NSBezierPath alloc] init];
	[path setLineWidth:2];
	[path moveToPoint:NSMakePoint(27, 8)];
	[path lineToPoint:NSMakePoint(60, 8)];
	//[[NSColor orangeColor] set];
	[[NSColor colorWithCalibratedRed:0.0 green:0.6 blue:0.0 alpha:1.0] set];
	[path stroke];
}
// done
@end
